package day14.homework02.test03;

/**
 * @author Xiao
 * @date 2021/8/7
 */
public class Desk {
    private int count = 10;
    private boolean flag = false;
    private final Object lock = new Object();

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Object getLock() {
        return lock;
    }

    public Desk(int count, boolean flag) {
        this.count = count;
        this.flag = flag;
    }

    public Desk() {
    }
}
